package com.ysx.student.zhangqingrong.com.ysx.day2;

import java.util.Scanner;

/**
 * @author 张青荣
 */
public class DemoTest5 {
    public static void main(String[] args) {

        // 键盘录入
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入学历：");
        String s = sc.next();
        System.out.println("请输入年龄：");
        int age = sc.nextInt();
        System.out.println("请输入性别：");
        String gender = sc.next();
        //满足性别为女，年龄大于等于18，学历为大专以上
        if ( "女".equals(gender) && age >= 18) {


            if ("大专".equals(s) || "本科".equals(s)) {
                System.out.println("符合条件！");
            }


        } else {
            System.out.println("不符合条件！");
        }


    }
}
